.resource-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }

/* ������������бʽ */
.available-networks-dropdown {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease;
}

.dropdown-header:hover {
  background: #f5f5f5;
}

.dropdown-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.dropdown-arrow {
  color: #666;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.dropdown-content {
  max-height: 300px;
  overflow-y: auto;
}

.network-item {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.network-item:last-child {
  border-bottom: none;
}

.network-item:hover {
  background: #f8f9fa;
}

.network-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.network-name {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.network-badges {
  display: flex;
  gap: 8px;
}

.network-type-badge,
.network-status-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.network-type-badge.public {
  background: #e3f2fd;
  color: #1565c0;
}

.network-type-badge.private {
  background: #f3e5f5;
  color: #7b1fa2;
}

.network-status-badge.active {
  background: #e8f5e8;
  color: #2e7d32;
}

.network-status-badge:not(.active) {
  background: #ffeaa7;
  color: #d68910;
}

.network-sub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #666;
}

.network-address {
  opacity: 0.8;
}

.network-member {
  font-weight: 500;
}

  
  .breadcrumb {
    margin: 15px 0;
    font-size: 14px;
    color: #666;
  }
  
  .breadcrumb a {
    color: #555;
    text-decoration: none;
  }
  
  .breadcrumb a:hover {
    color: #ffd600;
  }
  
  /* ��Դ���鿨Ƭ��ʽ */
  .resource-detail-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
  }
  
  /* ��Դͷ����Ϣ��ʽ */
  .resource-header {
    display: flex;
    padding: 25px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .resource-cover {
    position: relative;
    flex: 0 0 300px;
    height: 300px;
    margin-right: 25px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  
  .resource-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .free-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
  }
  
  .resource-header-info {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  
  .resource-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 15px;
    font-weight: 600;
    height: 40px;
  }
  
  .resource-meta-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    z-index: 1; /* ����z-index�ϵ� */
  }
  
  .resource-meta-info span {
    color: #666;
    font-size: 14px;
  }
  
  .resource-meta-info a {
    color: #1890ff;
    text-decoration: none;
  }
  
  .resource-meta-info a:hover {
    text-decoration: underline;
  }
  
  /* ��Դͳ��������ʽ */
  .resource-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
  }
  
  .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item span {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 5px 0;
  }
  
  .stat-item label {
    font-size: 12px;
    color: #888;
  }
  
  /* ͼ����ʽ - ʹ��Font Awesome���Զ���ͼ��� */
  .icon-download:before {
    content: "\f019"; /* Font Awesome����ͼ�� */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }
  
  .icon-like:before {
    content: "\f004"; /* Font Awesome����ͼ�� */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }
  
  .icon-view:before {
    content: "\f06e"; /* Font Awesome�۾�ͼ�� */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
  }
  
  /* ��Դ��ǩ��ʽ */
  .resource-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .tags-title {
    font-size: 14px;
    color: #666;
  }
  
  .tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .tag:hover {
    background-color: #ffd600;
    color: #333;
  }
  
  /* ������ť��ʽ */
  .resource-actions {
    display: flex;
    gap: 15px;
    margin-top: auto;
  }
  
  .resource-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .like-btn {
    background-color: #f5f5f5;
    color: #666;
  }
  
  .like-btn i {
    margin-right: 5px;
  }
  
  .like-btn.active {
    background-color: #ffecb3;
    color: #ff9800;
  }
  
  .buy-btn {
    background-color: #ffd600;
    color: #333;
  }
  
  .buy-btn:hover {
    background-color: #ffc800;
  }
  
  .download-btn {
    background-color: #4caf50;
    color: white;
  }
  
  .download-btn:hover {
    background-color: #43a047;
  }
  
  .share-btn {
    background-color: #1890ff;
    color: white;
  }
  
  .share-btn:hover {
    background-color: #0d81e6;
  }
  
  .report-btn {
    background-color: #f5f5f5;
    color: #666;
  }
  
  .report-btn:hover {
    background-color: #e0e0e0;
  }
  
  /* ��ϸ��Ϣ��ǩҳ��ʽ */
  .resource-details {
    padding: 25px;
  }
  
  .details-tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
  }
  
  .tab-btn {
    padding: 10px 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
  }
  
  .tab-btn.active {
    color: #ffd600;
  }
  
  .tab-btn.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffd600;
  }
  
  /* ��ϸ������ʽ */
  .details-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .details-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #eee;
  }
  
  .description-content {
    color: #555;
    line-height: 1.6;
  }
  
  /* ��Դ��Ϣ������ʽ */
  .resource-info-table table {
    width: 100%;
    border-collapse: collapse;
  }
  
  .resource-info-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .resource-info-table td:first-child {
    width: 20%;
    color: #666;
    font-weight: 500;
  }
  
  /* Ԥ��ͼ��ʽ */
  .preview-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .preview-image {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  .preview-image img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  .no-preview {
    color: #999;
    font-style: italic;
  }
  
  /* �����Դ�Ƽ���ʽ */
  .related-resources {
    margin-bottom: 30px;
  }
  
  .related-resources h2 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  /* ���غʹ���״̬��ʽ */
  .loading-container, .no-resource, .error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ffd600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .error-message {
    color: #c62828;
  }
  
  .no-resource {
    color: #666;
  }
  
  /* ��Ӧʽ���� */
  @media (max-width: 768px) {
    .resource-header {
      flex-direction: column;
    }
    
    .resource-cover {
      margin-right: 0;
      margin-bottom: 20px;
      height: 200px;
      flex-basis: auto;
    }
    
    .resource-stats {
      justify-content: space-between;
    }
    
    .preview-images {
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
  }
  
  /* ���򵯴���ʽ */
  .purchase-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .purchase-modal {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .purchase-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .purchase-modal-header h2 {
    font-size: 18px;
    margin: 0;
  }
  
  .close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
  }
  
  .purchase-modal-content {
    margin-bottom: 20px;
  }
  
  .purchase-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  
  .purchase-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
  }
  
  .cancel-purchase-btn {
    padding: 8px 15px;
    background-color: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .confirm-purchase-btn {
    padding: 8px 15px;
    background-color: #ffd600;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .network-select {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
  }

  /* ���ӵ� ResourceDetail.css �ļ��� */

.available-networks-section {
  margin-top: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.network-selection {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.network-label {
  font-weight: 600;
  font-size: 14px;
  color: #495057;
}

.network-select {
  padding: 10px 12px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  color: #495057;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  min-height: 40px;
}

.network-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.network-select:hover {
  border-color: #adb5bd;
}

.selected-network-info {
  margin-top: 10px;
}

.network-item {
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.network-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.network-name {
  font-weight: 600;
  font-size: 16px;
  color: #212529;
}

.network-badges {
  display: flex;
  gap: 6px;
}

.network-type-badge,
.network-status-badge {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
}

.network-type-badge.public {
  background-color: #e3f2fd;
  color: #1976d2;
}

.network-type-badge.private {
  background-color: #fff3e0;
  color: #f57c00;
}

.network-status-badge.active {
  background-color: #e8f5e8;
  color: #2e7d32;
}

.network-status-badge.inactive {
  background-color: #ffebee;
  color: #c62828;
}

.network-sub-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #6c757d;
}

.network-address {
  flex: 1;
}

.network-member {
  font-weight: 500;
  color: #28a745;
}

.network-tracker {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.tracker-label {
  font-weight: 500;
  color: #495057;
}

.tracker-url {
  color: #007bff;
  word-break: break-all;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* ��Ӧʽ��� */
@media (max-width: 768px) {
  .network-main-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .network-sub-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .network-select {
    font-size: 16px; /* ��ֹiOS���� */
  }
}

/* �������������� */
.comments-section {
  margin-top: 2rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ���۷������� */
.comment-form {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  border-bottom: 1px solid #e5e7eb;
}

.form-header {
  margin-bottom: 1.5rem;
}

.form-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-subtitle {
  color: #6b7280;
  font-size: 0.875rem;
}

.comment-input-container {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.user-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
}

.comment-input-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.comment-textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 100px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.comment-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.char-count {
  font-size: 0.75rem;
  color: #6b7280;
}

.comment-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.image-upload-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: #374151;
}

.image-upload-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.submit-comment-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.submit-comment-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.submit-comment-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.loading-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ѡ�е�ͼƬԤ�� */
.selected-images {
  margin-top: 0.75rem;
}

.images-preview {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.image-preview {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e5e7eb;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.remove-image-btn {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

/* �����б�ͷ�� */
.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.comments-stats {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-main {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.comments-count {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

.comments-label {
  color: #6b7280;
  font-size: 0.875rem;
}

.comments-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.sort-select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sort-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* �����б� */
.comments-list {
  background: #fff;
}

.comments-container {
  padding: 1rem 0;
}

.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
}

.comment-item:hover {
  background: #f9fafb;
}

.comment-item:last-child {
  border-bottom: none;
}

.comment-avatar .avatar-placeholder {
  width: 36px;
  height: 36px;
  font-size: 0.875rem;
}

.comment-content-wrapper {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.comment-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.user-name {
  font-weight: 600;
  color: #1f2937;
  font-size: 0.875rem;
}

.comment-time {
  color: #6b7280;
  font-size: 0.75rem;
}

.comment-edited {
  background: #fef3c7;
  color: #92400e;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.comment-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.edit-comment-btn,
.delete-comment-btn {
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.edit-comment-btn:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.delete-comment-btn:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.comment-content {
  margin-bottom: 1rem;
}

.comment-text {
  color: #374151;
  line-height: 1.6;
  font-size: 0.875rem;
  margin: 0;
  word-wrap: break-word;
}

/* ���۱༭���� */
.comment-edit-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.edit-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
  font-family: inherit;
}

.edit-textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.edit-actions {
  display: flex;
  gap: 0.5rem;
}

.save-edit-btn,
.cancel-edit-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.save-edit-btn {
  background: #10b981;
  color: white;
}

.save-edit-btn:hover {
  background: #059669;
}

.cancel-edit-btn {
  background: #f3f4f6;
  color: #374151;
}

.cancel-edit-btn:hover {
  background: #e5e7eb;
}

/* ���۵ײ����� */
.comment-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.like-comment-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: #6b7280;
}

.like-comment-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.like-comment-btn.liked {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

.like-icon {
  font-size: 0.875rem;
}

.like-count {
  font-weight: 500;
}

.comment-index {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ���غʹ���״̬ */
.comments-loading,
.comments-error,
.no-comments {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
}

.comments-loading {
  gap: 1rem;
  color: #6b7280;
}

.comments-loading .loading-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid #f3f4f6;
  border-top: 3px solid #3b82f6;
}

.comments-error {
  gap: 1rem;
  color: #dc2626;
}

.error-icon {
  font-size: 2rem;
}

.error-text {
  font-size: 1rem;
  font-weight: 500;
}

.retry-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.retry-btn:hover {
  background: #2563eb;
}

.no-comments {
  gap: 0.75rem;
  color: #6b7280;
}

.no-comments-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.no-comments-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #374151;
}

.no-comments-subtitle {
  font-size: 0.875rem;
}

/* ��ҳ�� */
.comments-pagination {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.pagination-info {
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  color: #374151;
}


/* �û��Լ���������ʽ */
.comment-item.own-comment {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f0ff 100%);
  border: 2px solid #4CAF50;
  border-radius: 12px;
  position: relative;
  margin-bottom: 20px;
}

.comment-item.own-comment::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  border-radius: 12px;
  z-index: -1;
}

/* �ö����۱�ʶ */
.top-comment-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

/* �û�����ʽ�Ż� */
.user-name.own-user {
  color: #4CAF50;
  font-weight: 600;
}

.me-badge {
  background: #4CAF50;
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  margin-left: 6px;
  font-weight: 500;
}

/* ͷ����ʽ�Ż� */
.comment-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.user-avatar-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 3;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* ���ް�ť��ʽ�Ż� */
.like-comment-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
}

.like-comment-btn:hover:not(:disabled) {
  border-color: #ff6b6b;
  background: #fff5f5;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.2);
}

.like-comment-btn.liked {
  border-color: #ff6b6b;
  background: linear-gradient(135deg, #ff6b6b, #ff5252);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.like-comment-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #999;
}

.like-comment-btn:disabled:hover {
  transform: none;
  box-shadow: none;
}

.like-icon {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.like-comment-btn:hover:not(:disabled) .like-icon {
  transform: scale(1.2);
}

.like-count {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* ���۲�����ť��ʽ */
.comment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edit-comment-btn,
.delete-comment-btn {
  padding: 6px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 16px;
}

.edit-comment-btn:hover {
  background: #e3f2fd;
  transform: scale(1.1);
}

.delete-comment-btn:hover {
  background: #ffebee;
  transform: scale(1.1);
}

/* ���۱༭������ʽ */
.comment-edit-form {
  margin-top: 10px;
}

.edit-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.edit-textarea:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.edit-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}

.save-edit-btn,
.cancel-edit-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.save-edit-btn {
  background: #4CAF50;
  color: white;
}

.save-edit-btn:hover {
  background: #45a049;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.cancel-edit-btn {
  background: #f5f5f5;
  color: #666;
}

.cancel-edit-btn:hover {
  background: #e0e0e0;
  transform: translateY(-1px);
}

/* ����������ʽ */
.comment-index {
  color: #999;
  font-size: 12px;
  font-weight: 500;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 10px;
  margin-left: auto;
}

/* ���۵ײ���ʽ */
.comment-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* ��Ӧʽ��� */
@media (max-width: 768px) {
  .comment-item.own-comment {
    margin: 0 -10px 20px -10px;
    border-radius: 8px;
  }
  
  .top-comment-badge {
    left: 10px;
    font-size: 11px;
    padding: 3px 8px;
  }
  
  .comment-actions {
    flex-direction: column;
    gap: 4px;
  }
  
  .edit-actions {
    flex-direction: column;
  }
  
  .save-edit-btn,
  .cancel-edit-btn {
    width: 100%;
  }
}

/* ���غʹ���״̬��ʽ���ֲ��� */
.comments-loading,
.comments-error,
.no-comments {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #4CAF50;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 在文件末尾添加分页容器样式 */

.pagination-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  padding: 20px 0;
}

.pagination-container .ant-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comments-pagination {
  margin-top: 20px;
  padding: 20px 0;
  border-top: 1px solid #eee;
}

.comments-pagination .pagination-container {
  margin: 0;
  padding: 0;
}